home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / lwlib / lwlib-config.c next >
Encoding:
C/C++ Source or Header  |  1995-01-28  |  2.4 KB  |  97 lines

  1. /* Flags indicating how lwlib was compiled.
  2.    Copyright (C) 1994 Lucid, Inc.
  3.  
  4. This file is part of the Lucid Widget Library.
  5.  
  6. The Lucid Widget Library is free software; you can redistribute it and/or 
  7. modify it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. The Lucid Widget Library is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of 
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU Emacs; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20.  
  21. /* This is a kludge to make sure emacs can only link against a version of
  22.    lwlib that was compiled in the right way.  Emacs references symbols which
  23.    correspond to the way it thinks lwlib was compiled, and if lwlib wasn't
  24.    compiled in that way, then somewhat meaningful link errors will result.
  25.    The alternatives to this range from obscure link errors, to obscure
  26.    runtime errors that look a lot like bugs.
  27.  */
  28.  
  29. #include "lwlib.h"
  30.  
  31. #include <X11/Xlib.h>    /* to get XlibSpecificationRelease */
  32. #ifdef NEED_MOTIF
  33. #include <Xm/Xm.h>    /* to get XmVersion */
  34. #endif
  35.  
  36. #if (XlibSpecificationRelease == 4)
  37. int lwlib_uses_x11r4;
  38. #elif (XlibSpecificationRelease == 5)
  39. int lwlib_uses_x11r5;
  40. #elif (XlibSpecificationRelease == 6)
  41. int lwlib_uses_x11r6;
  42. #else
  43. int lwlib_uses_unknown_x11;
  44. #endif
  45.  
  46. #ifdef NEED_MOTIF
  47. int lwlib_uses_motif;
  48. #else
  49. int lwlib_does_not_use_motif;
  50. #endif
  51.  
  52. #if (XmVersion >= 1002)
  53. int lwlib_uses_motif_1_2;
  54. #else
  55. int lwlib_does_not_use_motif_1_2;
  56. #endif
  57.  
  58. #ifdef MENUBARS_LUCID
  59. int lwlib_menubars_lucid;
  60. #else
  61. # ifdef MENUBARS_MOTIF
  62. int lwlib_menubars_motif;
  63. # else
  64. Error!  Unknown toolkit for menubars.
  65. # endif
  66. #endif
  67.  
  68. #ifdef SCROLLBARS_LUCID
  69. int lwlib_scrollbars_lucid;
  70. #else
  71. # ifdef SCROLLBARS_MOTIF
  72. int lwlib_scrollbars_motif;
  73. # else
  74. #  ifdef SCROLLBARS_ATHENA
  75. int lwlib_scrollbars_athena;
  76. #  else
  77. Error!  Unknown toolkit for scrollbars.
  78. #  endif
  79. # endif
  80. #endif
  81.  
  82. #ifdef DIALOGS_MOTIF
  83. int lwlib_dialogs_motif;
  84. #else
  85. # ifdef DIALOGS_ATHENA
  86. int lwlib_dialogs_athena;
  87. # else
  88. Error!  Unknown toolkit for dialogs.
  89. # endif
  90. #endif
  91.  
  92. #ifdef ENERGIZE
  93. int lwlib_uses_energize;
  94. #else
  95. int lwlib_does_not_use_energize;
  96. #endif
  97.